package com.dps.omc.action;

import com.dps.omc.task.message.DesUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by lip on 2016-04-25.
 */
@Controller
public class UtilAction extends BaseAction{

    @RequestMapping(value="/admin/pass/encrypt")
    @ResponseBody
    public String delete(String pass,HttpServletRequest request) throws Exception {

        pass = DesUtils.encrypt(pass);
        return pass;
    }
}
